LArk.widget.bindClass(LArk.widget.BaseWidget.extend({
    options: {
        view: {
            type: "window",
            url: "view.html",
            windowOptions: {
                width: 500,
                height: 200
            }
        }
    },
    create: function () {},
    viewWindow: null,
    winCreateOK: function (t, i) {
        this.viewWindow = i
    },
    data: null,
    activate: function () {
        this.data = this.config.data, this.viewWindow.setEchartsData(this.data)
    },
    disable: function () {
        this.viewWindow = null, this.data = null
    },
    update: function () {
        this.data = this.config.data, this.viewWindow.setEchartsData(this.data)
    },
    changeFlyOk: function (t) {
        this.data && (this.data.thislen = t)
    }
}));